import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
	state:{
		userinfo:uni.getStorageSync('userinfo') || null
	},
	mutations:{
		changeLogin(state,user){
			state.userinfo = user
		}
	}
})

export default store